﻿#include "dialog.h"
#include "ui_dialog.h"

Dialog::Dialog(QWidget *parent)
    : QDialog(parent)
    , ui(new Ui::Dialog)
{
    ui->setupUi(this);
    Label* title1 = new Label("标题 1", 1, this);
    title1->setTextColor(QColor("#ff5722")); // 设置颜色
    title1->move(20, 20);

    Label* title2 = new Label("标题 2", 2, this);
    title2->setTextColor(QColor("#ffb800")); // 设置颜色
    title2->move(20, 80);

    Label* title3 = new Label("标题 3", 3, this);
    title3->setTextColor(QColor("#16baaa")); // 设置颜色
    title3->move(20, 140);

    Label* title4 = new Label("标题 4", 4, this);
    title4->setTextColor(QColor("#1e9fff")); // 设置颜色
    title4->move(20, 200);

    Label* title5 = new Label("标题 5", 5, this);
    title5->setTextColor(QColor("#a233c6")); // 设置颜色
    title5->move(20, 260);

    Label* title6 = new Label("标题 6", 6, this);
    title6->setTextColor(QColor("#23292e")); // 设置颜色
    title6->move(20, 320);
}

Dialog::~Dialog()
{
    delete ui;
}

